package com.eddie.facade;

/**
 * @author Eddie
 * @date 2022/08/02 09:20
 **/
public class Stereo {

    //单例模式,饿汉式
    private Stereo() {

    }

    private static final Stereo instance = new Stereo();

    public static Stereo getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("Stereo on");
    }

    public void off() {
        System.out.println("Stereo off");
    }

    public void up() {
        System.out.println("Stereo 音量增加");
    }
}
